package com.web.action.backend;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.web.assist.ActionConstant;

public class LogoutAction extends ActionSupport{
	@Override
	public String execute() throws Exception {
		ActionContext.getContext().getSession().remove(ActionConstant.USER);
		ActionContext.getContext().getSession().put(ActionConstant.LOGOUT, "logout");
		return SUCCESS;
	}
}
